def list = [1,2,3] as List
assert list.class == ArrayList

def set = [1,2,3] as Set
assert set.class == HashSet

assert set.size() == 3

set.add(1)
assert set.size() == 3

set.add(4)
assert set.size() == 4

println 'The End'